package com.ha7419x.reentrant;

public class XxtBlock extends SuperXxtBlock {

    @Override
    public synchronized void doSomething() {
        System.out.println("child.doSomething() " + Thread.currentThread().getName());
        doAnotherThing();
    }

    public synchronized void doAnotherThing () {
        super.doSomething();
        System.out.println("child.doAnotherThing() " + Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        XxtBlock xxtBlock = new XxtBlock();
        xxtBlock.doSomething();
    }
}
